//app.js
//本地存储中userinfo key
const USERINFOKEY = "userinfo";

let app = {
  globalData: {
    userInfoKey: USERINFOKEY,
    hasUserInfo: !!wx.getStorageSync(USERINFOKEY), //是否获取用户信息成功标志
    userInfo: wx.getStorageSync(USERINFOKEY), //用户信息
  },
 
};

App(app)